package com.sinog.front.controller.api.xml;

import com.sinog.core.utilbean.Result;
import com.sinog.front.feign.biz.xml.InterfaceDockingService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @desc 湖南个性化接口对接-Controller
 * @author wangxj
 * @date 2022/6/27 下午3:00
 */
@RestController
public class InterfaceDockingController {

    @Resource
    private InterfaceDockingService interfaceDockingService;

    /**
     * 保存预安置人员 (1、基本信息 2、服刑信息 3、配偶、父母，社会关系 4、子女信息)
     * 保存核查信息 (5、核查信息)
     * @param paramMap 接口调用参数
     * @return Result 返回结果
     */
    @RequestMapping(value = "/transmission/xml/azbj/automaticVerification", method = RequestMethod.GET)
    public Result automaticVerification(@RequestBody Map<String, List<Map<String, String>>> paramMap) {
        return interfaceDockingService.automaticVerification(paramMap);
    }
}